package com.lzh.seatrend.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Classname ApplicationStartReadyListener
 * @Description TODO
 * @Date 2021/9/3 14:40
 * @Created by liuzihao
 */
@Component
public class ApplicationStartReadyListener implements ApplicationListener<ApplicationReadyEvent> {

    Logger logger = LoggerFactory.getLogger(ApplicationStartReadyListener.class);

    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        //启动定时器
//        runSchedules();
    }

//    private runSchedules(){
//        logger.info("=========Starting=========");
//
//        logger.info("=========Started=========");
//    }

}
